package com.zxc.service.impl;

import com.zxc.dao.OnlineExamCourseRecordDao;
import com.zxc.model.OnlineExamCourseRecord;
import com.zxc.service.OnlineExamCourseRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OnlineExamCourseRecordServiceImpl implements OnlineExamCourseRecordService {
    @Autowired
    OnlineExamCourseRecordDao onlineExamCourseRecordDao;
    @Override
    public List<OnlineExamCourseRecord> queryAll() {
        return onlineExamCourseRecordDao.queryAll();
    }

    @Override
    public List<OnlineExamCourseRecord> queryByExamId(Integer examId) {
        return onlineExamCourseRecordDao.queryByExamId(examId);
    }

    @Override
    public int insert(OnlineExamCourseRecord onlineExamCourseRecord) {
        return onlineExamCourseRecordDao.inserReocrd(onlineExamCourseRecord);
    }
}
